package com.youkeda.test.threadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author CoderXshuai
 */
public class Bank {
    private static final ExecutorService threadPool = Executors.newFixedThreadPool(2);

    public static void main(String[] args) {
        Account account = new Account(100);
        Person person1 = new Person("姚远", account, "atm");
        Person person2 = new Person("路晓欧", account, "window");
        threadPool.execute(person1);
        threadPool.execute(person2);
    }
}
